package com.zhangyusheng.easyecharts.component;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * TODO: 自定义单个柱子颜色
 *
 * @author Michael zhang
 * @email zhangys_0217@sina.com
 * @since 2025年11月03日
 */
@Data
@Accessors(chain = true)
public class SetStyleOfSingleBar implements Serializable {
    private final static long serialVersionUID = 2L;
    private Object value;
    private ItemStyle itemStyle;

    public static class Builder{
        private Object value;
        private ItemStyle itemStyle;
        public Builder value(Object value){
            this.value = value;
            return this;
        }
        public Builder itemStyle(ItemStyle itemStyle){
            this.itemStyle = itemStyle;
            return this;
        }
        public SetStyleOfSingleBar build(){
            return new SetStyleOfSingleBar(this);
        }
    }
    private SetStyleOfSingleBar(Builder builder){
        this.value = builder.value;
        this.itemStyle = builder.itemStyle;
    }

}